package spe.ui.editor.command;

import org.eclipse.draw2d.geometry.Point;

public final class BendpointMovingCommand extends AbstractBendpointCommand 
{
	private Point oldBendpoint;
	
	public void execute() 
	{
		oldBendpoint = link.getBendPoints().get(index);
		link.setBendPoint(index, bendpoint);
	}
	
	public void undo() 
	{
		link.setBendPoint(index, oldBendpoint);
	}
}
